package com.chenhy.springbootvuesmbms.service;

import com.chenhy.springbootvuesmbms.mapper.RoleMapper;
import com.chenhy.springbootvuesmbms.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService{

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> queryAllRole() {
        return roleMapper.queryAllRole();
    }

    @Override
    public Role queryRoleById(int id) {
        return roleMapper.queryRoleById(id);
    }
}
